import TableAction from '../../../src/components/ConfigTable/Action';

export default class extends TableAction {
    editRow = (rowData, index, e) => {
        const formData = {
            projectName: rowData.name,
            endLine: rowData.endLine,
            gitUrl: rowData.gitUrl,
            developer: rowData.developer,
            detail: rowData.detail
        };
        this.models.proInfoM.set({
            formData: formData,
            currentRowIndex: index
        });
        this.models.pageM.set({
            page: 'edit'
        });
    }
}